<!-- inc:global_head -->
<!-- inc:right.css -->
<!-- inc:right.head -->

<!-- 图片管理 -->
<table width="100%">
<tr>
	<td class="qg_notice" style="text-align:left;">
		<a href="admin.php?file=index">系统首页</a> &raquo;
		<a href="admin.php?file=index.set&act=list">首页"即将上市"图片管理</a> &raquo;
		当前动作：首页"即将上市"图片管理
	</td>
</tr>
</table>

<form name="qgform" action="admin.php?file=coming.img&act=setok&id={:$id}" method="post">
<div class="table">
<table width="100%">
<tr>
	<td class="left"></td>
	<td class="right clue_on" style="color:#f00">说明：图片请自行处理大小为 210px × 110px，网址请带“http://”，最多支持3张图片</td>
</tr>
</table>
</div>
<!-- $qgarray AS $key=>$value -->
<!-- run:$img_file = $imgarray[$value]; -->
<!-- run:$url_file = $urlarray[$value]; -->
<!-- run:$label_file = $labelarray[$value]; -->
<div class="table">
<table width="100%">
<tr>
	<td class="left">图片：{:$value}</td>
	<td class="right">
		<input type="text" name="img_{:$value}" id="img_{:$value}" value="{:$img_file}" class="long_input">
		<input type="button" value="选择图片" onclick="to_openpic('img_{:$value}')">
	</td>
	<td rowspan="3">
		<img width="105px" height="55px" src="{:$img_file}"  id="img_{:$value}_show" />
	</td>
</tr>
<tr>
	<td class="left">标题：{:$value}</td>
	<td class="right"><input maxlength="50" type="text" name="label_{:$value}" id="label_{:$value}" value="{:$label_file}" class="long_input"></td>
</tr>
<tr>
	<td class="left">网址：{:$value}</td>
	<td class="right"><input type="text" name="url_{:$value}" id="url_{:$value}" value="{:$url_file}" class="long_input"></td>
</tr>
</table>
</div>
<hr size="1" color="#AAAAAA">
<!-- end -->
<div class="table">
<table width="100%">
<tr>
	<td class="left"></td>
	<td class="right"><input type="submit" value="提 交" class="smt"></td>
</tr>
</table>
</div>
<script type="text/javascript">
function to_openpic(id)
{
	var siteurl = "admin.php?file=open.index.img&act=list&id="+id;
	qg_open(siteurl,"500");
}
function resetPic(id,src)
{
	$(id+'_show').src = src;
}
</script>